<?php

namespace app\job;

use think\queue\Job;

class DetectionXML extends BaseJob
{
    public function initialize(){}

    public function fire(Job $job,$filePath) {
        echo "start",PHP_EOL;
        if ($job->attempts() > 3) {
            $job->delete();
        }
        {

        }
        $job->delete();
        echo "end",PHP_EOL;
    }
}